﻿package mortal.game.net.command.trade
{
    import Framework.MQ.*;
    import Message.Command.*;
    import extend.language.*;
    import mortal.game.manager.*;
    import mortal.game.mvc.*;
    import mortal.game.net.broadCast.*;
    import mortal.mvc.core.*;

    public class TradeCommand extends BroadCastCall
    {

        public function TradeCommand(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function call(param1:MessageBlock) : void
        {
            super.call(param1);
            switch(param1.messageHead.command)
            {
                case EPublicCommand._ECmdPublicBusiness:
                {
                    NetDispatcher.dispatchCmd(ServerCommand.TradeUpdate, param1);
                    break;
                }
                case EPublicCommand._ECmdPublicBusinessApplySuccessful:
                {
                    MsgManager.showRollTipsMsg(Language.getString(20531));
                    break;
                }
                default:
                {
                    break;
                }
            }
            return;
        }// end function

    }
}
